<?php
/**
 * Created by PhpStorm.
 * User:ly
 * Date: 2017\12\15 0015
 * Time: 13:41
 */
?>
<div class="perfect-logo ">
    <img src="/image/officeHall/uploadAssetPackage/wsxx.png" class="pull-left">
    <span class="pull-left">转让信息</span>
</div>
<form class="form-horizontal " id="transferForm">
    <!-- 1 -->
    <div class="form-group mb25">
        <label for="" class="pull-left control-label">资产包提供方</label>
        <div class="pull-left label-div" id="transfertype">
            <?PHP
            $transfer=$data['transfer'];
            $transferid= $transfer['lumper']['transfer']==2?2:1;
            ?>
            <button type="button" onclick="$('#lumperinfo').css('display','none');$('#lumperinfo input').val('');"  class="btn <?php echo $transferid==1?'btn-primary':'btn-default'?>  transfer-information-btn btns-primary" transferid="1" >持有人</button>
            <button type="button" onclick="$('#lumperinfo').css('display','block');"  class="btn <?php echo $transferid==2?'btn-primary':'btn-default'?>  transfer-information-btn btns-primary" transferid="2">居间人</button>

        </div>
    </div>

    <!-- 左右两个栏目 -->
    <!-- 里面包含两行!!!!!!!!!!!!!!!!!!!!!!! -->

    <div class="form-group lr-wrap" id="holderinfo">
        <!-- 左半边!!!!!!!!!!!!!!!!!!!!!!!! -->
        <div class="Transfer-information-left pull-left">
            <!-- 0 -->
            <div class=" mb25 pl0">
                <label class="control-label pull-left lr-wrap-label" style="color: #34a0e7;">持有人信息</label>
            </div>
            <!-- 1 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">联系人</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text"  value="<?PHP echo $transfer['holder']['contact'];?>"  class="form-control" id="hcontact" value="">
                    <!-- <span style="display: none;">江苏盐城产业投资有限公司转让亚信源债权资产包</span> -->
                </div>
            </div>
            <!-- 2 -->
            <div class="mb25  pl0">
                <label for="" class="control-label pull-left lr-wrap-label">电话</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text" name="hphone"   value="<?PHP echo $transfer['holder']['phone'];?>"  class="form-control" id="hphone" >
                </div>
            </div>
            <!-- 3 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">地址</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text"   value="<?PHP echo $transfer['holder']['address'];?>" class="form-control" id="haddress" value=" ">
                </div>
            </div>
            <!-- 4 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">邮箱</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text" email="true" onkeyup="true"  value="<?PHP echo $transfer['holder']['email'];?>" class="form-control" id="hemail" name="hemail" value="">
                </div>
            </div>
            <!-- 5 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">职位</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text"   value="<?PHP echo $transfer['holder']['position'];?>" class="form-control" id="hposition" value=" ">
                </div>
            </div>
            <!-- 6 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">备注</label>
                <div class="pull-left lr-wrap-div">
                    <textarea    class="form-control textarea-edit" id="hremark"  placeholder="请说明对本资产包的影响力；居间费用；竞争对手说明；合作模式及其他沟通情况；"><?PHP echo $transfer['holder']['remark'];?></textarea>
                </div>
            </div>

        </div>
        <!-- 左半边!!!!!!!!!!!!!!!!!!!!!!!! 结束 -->

        <!-- 右半边!!!!!!!!!!!!!!!!!!!!!!!! 开始 -->
        <div class="Transfer-information-left pull-left" id="lumperinfo" <?PHP echo $transfer['lumper']['transfer']!=2?'style="display:none"':''; ?> >
            <!-- 0 -->
            <div class="mb25 pl0">
                <label class="control-label pull-left lr-wrap-label" style="color:#34a0e7">居间人信息</label>
            </div>
            <!-- 1 -->
            <div class="mb25  pl0">
                <label for="" class="control-label pull-left lr-wrap-label">联系人</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text"  value="<?PHP echo $transfer['lumper']['contact'];?>" class="form-control" id="lcontact" value="">
                </div>
            </div>
            <!-- 2 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">电话</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text" name="lphone"  value="<?PHP echo $transfer['lumper']['phone'];?>"  class="form-control" id="lphone" value="">
                </div>
            </div>
            <!-- 3 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">地址</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text"  value="<?PHP echo $transfer['lumper']['address'];?>" class="form-control" id="laddress" value="">
                </div>
            </div>
            <!-- 4 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">邮箱</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text" email="true" onkeyup="true"  value="<?PHP echo $transfer['lumper']['email'];?>" class="form-control" id="lemail" value="">
                </div>
            </div>
            <!-- 5 -->
            <div class="mb25  pl0">
                <label for="" class="control-label pull-left lr-wrap-label">职位</label>
                <div class="pull-left lr-wrap-div">
                    <input type="text"  value="<?PHP echo $transfer['lumper']['position'];?>" class="form-control" id="lposition" value="">
                </div>
            </div>
            <!-- 6 -->
            <div class="mb25 pl0">
                <label for="" class="control-label pull-left lr-wrap-label">备注</label>
                <div class="pull-left lr-wrap-div">
                    <textarea class="form-control textarea-edit"   id="lremark" rows="4" placeholder="请说明对本资产包的影响力；居间费用；竞争对手说明；合作模式及其他沟通情况；"><?PHP echo $transfer['lumper']['remark'];?></textarea>
                </div>
            </div>
        </div>
        <!-- 右半边!!!!!!!!!!!!!!!!!!!!!!!! 结束 -->
    </div>
    <!-- 里面包含两行!!!!!!!!!!!!!!!!!!!!!!! 结束-->

    <!-- 一行开始 -->
    <!-- 转让方式 -->
    <div class="form-group" style="margin-top: 30px; margin-bottom: 25px; ">
        <label for="" class="pull-left control-label">转让方式</label>
        <div class="pull-left label-div" id="methodtype" style="width: 54%">

            <?php
            $package_transfer_method = Yii::$app->params['package_transfer_method'];
            if (is_array($package_transfer_method) && !empty($package_transfer_method)) {
                foreach ($package_transfer_method as $key=>$value) {
                    if ($key>0) {
                        if ($transfer['holder']['method']== $key) {
                            $class = 'btn-primary';
                        } else {
                            $class = 'btn-default';
                        }
                        echo '<button type="button" class="btn '.$class.' perfect-information-btn btns-primary" methodid="'.$key.'">'.$value.'</button>';
                    }
                }
            }
            ?>

            <!--
                <button type="button" class="btn <?PHP /*echo  $transfer['holder']['method']==1?'btn-primary':'btn-default'*/?> perfect-information-btn btns-primary" methodid="1">协议</button>
                <button type="button" class="btn <?PHP /*echo  $transfer['holder']['method']==2?'btn-primary':'btn-default'*/?> perfect-information-btn btns-primary" methodid="2">公开竞价</button>
                <button type="button" class="btn <?PHP /*echo  $transfer['holder']['method']==3?'btn-primary':'btn-default'*/?> perfect-information-btn btns-primary" methodid="3">暗标竞价</button>
                <button type="button" class="btn <?PHP /*echo  $transfer['holder']['method']==4?'btn-primary':'btn-default'*/?> perfect-information-btn btns-primary" methodid="4">收益权转让</button>
                <button type="button" class="btn <?PHP /*echo  $transfer['holder']['method']==5?'btn-primary':'btn-default'*/?> perfect-information-btn btns-primary" methodid="5">其他</button>
            -->

        </div>
        <label for="" class="pull-left control-label">预计转让时间</label>
        <div class="pull-left lr-wrap-div">
            <input type="text"  value="<?PHP echo $transfer['holder']['expected_transfer'];?>" class="form-control" id="expected_transfer">
        </div>
    </div>
    <!-- 转让意愿 -->
    <div class="form-group" style="margin-bottom: 25px;">
        <label for="" class="pull-left control-label">转让意愿</label>
        <div class="pull-left label-div  label-div2 ">
            <textarea class="form-control textarea-edit" id="wish" value=""><?PHP echo $transfer['holder']['wish'];?></textarea>
        </div>
    </div>
    <!-- 转让价格 -->
    <div class="form-group" style="margin-bottom: 40px;">
        <label for="" class="pull-left control-label">转让价格</label>
        <div class="pull-left label-div  label-div2">
            <textarea class="form-control textarea-edit"  id="tdetail" value=""><?PHP echo $transfer['holder']['detail'];?></textarea>
        </div>
    </div>
    <!-- 结束按钮 -->
    <div class=" btns">
        <button type="button" class="btn btn-primary  btns-primary btns-primary-save pull-right perfect-information-btn" id="subtransfer" >保存</button>
        <button type="reset" class="btn btn-default  btns-primary btns-primary-del pull-right perfect-information-btn" id="canceltransfer">取消</button>
    </div>
</form>


<script type="text/javascript">
	$(function(){
		 $.validator.setDefaults({
				   debug: true
				})
		 $("#transferForm").validate({});
		 $("#lumperinfo").validate({});
	})
</script>